package com.hc.comm.model;

import java.io.Serializable;

public class ResultModel implements Serializable {

    /**
     * @Fields serialVersionUID : TODO
     */
    private static final long serialVersionUID = 1L;

    private int status = 0;

    private int code = 0;

    private String msg;

    private Object data;

    private int time;


    public ResultModel(int status, int code, String msg, Object data) {
        this.status = status;
        this.code = code;
        this.msg = msg;
        this.data = data;
        this.time = (int) (System.currentTimeMillis() / 1000);
    }

    public ResultModel(int status, int code, String msg) {
        this.status = status;
        this.code = code;
        this.msg = msg;
        this.time = (int) (System.currentTimeMillis() / 1000);
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }
}
